package river_city_ransom.decorators;

import exceptions.ComposantError;
import river_city_ransom.services.Dimensions;


public class Dimensions_D implements Dimensions {
	private Dimensions delegate;
	
	public Dimensions_D(Dimensions delegate) {
		this.delegate = delegate;
	}
	
	public Dimensions delegate() {
		return delegate;
	}
	
	@Override
	public boolean equals(Object o) {
		return delegate().equals(o);
	}
	
	@Override
	public String toString() {
		return delegate().toString();
	}
	
	/** _________________________________________________________ OBSERVATORS */
	@Override
	public int largeur() {
		return delegate().largeur();
	}

	@Override
	public int hauteur() {
		return delegate().hauteur();
	}

	@Override
	public int profondeur() {
		return delegate().profondeur();
	}

	/** ________________________________________________________ CONSTRUCTORS */
	@Override
	public void init(int l, int h, int p) throws ComposantError {
		delegate().init(l, h, p);
	}
}
